package com.yafeng.logic.service;

import com.yafeng.comonutils.ApiResult;
import com.yafeng.logic.vo.QueryUserInfo;
import com.yafeng.logic.entity.UserOprator;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yafeng.logic.vo.SetRoleVo;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cn.classbao
 * @since 2020-08-04
 */
public interface UserOperatorService extends IService<UserOprator> {

    String generateJwtToken(String userName, long expirationSeconds);

    void generateTokenCookie(HttpServletResponse response, String newToken) throws Exception;

    UserOprator queryUserById(String token);

    ApiResult userQueryList(QueryUserInfo queryUserInfo);

    ApiResult toUserSetRole(SetRoleVo setRoleVo)throws Exception;
}
